const Koa = require('koa');
const app = new Koa;
const path = require('path');
const render = require('koa-art-template');

//模板引擎
render(app,{
    root:path.join(__dirname,'views'),
    extname:'.html',
});

//开启路由
require('./controller')(app);

//监听
app.listen(8080,() => {
    console.log('=====>>>','index running...');
})
